﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"CodeBehind="Promotion.aspx.cs" Inherits="INSTA.EcoleGestion.FORMS.Promotion" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    
  
        <div class="page-header">
            <h1> <span class="glyphicon glyphicon-user"></span> Promotion</h1>
        </div>
        
        <table class="table table-striped">
        <thead>
          <tr>
            <th width="50px">Actions</th>
            <th width="50px">ID</th>
            <th width="50px">Nom</th>
            <th width="50px">Prénom</th>
            <th width="50px">Téléphone</th>
            <th width="50px">Email</th>
            <th width="50px">Promo</th>
          </tr>
        </thead>
      </table>
   

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Ajouter" Width="147px" OnClick="AjouterPromotion" />
        <br />
        <br />
   

        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" >
        </asp:DropDownList>

        <asp:GridView ID="GridView1" CssClass="table table-striped" runat="server" ShowHeader = "False"   AutoGenerateEditButton="True" OnRowCancelingEdit="AnnulerEdition" OnRowEditing="EditerLigne" OnRowUpdating="MiseAjourDansLaBase" AutoGenerateDeleteButton="True" Width="829px" OnRowDeleting="SupprimerLigne"    >
           <Columns>
               <asp:TemplateField HeaderText="Affectation">
             <EditItemTemplate>
                                    <asp:DropDownList ID="DropAffectation"  runat="server">
                                        <asp:ListItem Text=" " Value="1" ></asp:ListItem>
                                     <asp:ListItem Text="OUI" Value="2" ></asp:ListItem>
                                    <asp:ListItem Text="NON" Value="3"></asp:ListItem>
                                    </asp:DropDownList>
                                    </EditItemTemplate>
                   </asp:TemplateField>
               </Columns>
        </asp:GridView>
 
        
        <br />
 
        
        <asp:GridView ID="GridView2" runat="server" OnRowCommand="ValidationBouton" >
            <Columns>
                <asp:ButtonField ButtonType="Image"   CommandName="Insert" ShowHeader="True"  ImageUrl="~/Images/save-as-2.png"   />
            </Columns>
        </asp:GridView>
    
        
        <br />
        <br />
    
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    
      </asp:Content>

